import { useState } from 'react'
import logo from './logo.svg'
import './App.css'

// react 事件处理是原生的js处理吗？
const Demo = ()=>{
  return (
    <section
      onClick={(e)=>{console.log(e,"click section")}}
    >
      <h3>你好</h3>
      <button onClick={(e)=>{
        console.log('click button ' ,e)
      }}>点击</button>
    </section>
  )
}


function App() {

  return (
    <Demo />
  )
}

export default App
